.chat {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  bottom: 0;
  overflow: hidden;

  .chat_top {
    width: 100%;
    height: 45px;
    border-bottom: 1px solid #ddd;
    text-align: center;
    line-height: 45px;
    color: #333;
    background: #53b5fe;
    color: #ddd;
  }

  // 获取屏幕高度
  .chat_body_ul {
    width: 100%;
    height: 88vh;
    padding: 20px;
    overflow: auto;
    margin-bottom: 0;
    padding-bottom: 100px;

    // 时间
    .chat_chat_date {
      list-style-type: none;
      text-align: center;
      color: #88866f;
      margin-top: 10px;
    }

    // 机器的对话框
    .chat_chat {
      width: 100%;
      min-height: 65px;
      margin: 0 0 10px 0;
      list-style-type: none;
      display: flex;

      .chat_chat_img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        border: #ddd 1px solid;
        padding: 5px;

        img {
          width: 55px;
          height: 55px;
        }
      }

      .chat_chat_body {
        min-height: 60px;
        padding-left: 10px;
        position: relative;
        padding-top: 22px;

        .chat_chat_span_left {
          display: block;
          position: absolute;
          top: 0;
          left: 5px;
          width: 260px;
          height: 22px;
          overflow: hidden;
        }

        .chat_chat_text {
          max-width: 260px;
          min-height: 35px;
          padding: 2px 8px;
          background: #ddd;
          font-size: 20px;
          border-radius: 10px;
        }
      }
    }

    // 人的对话框
    .chat_chat_right {
      width: 100%;
      min-height: 65px;
      margin: 10px 0;
      list-style-type: none;
      display: flex;
      flex-direction: row-reverse;

      .chat_chat_img {
        width: 60px;
        height: 60px;
        border-radius: 50%;
        overflow: hidden;
        border: #ddd 1px solid;

        img {
          width: 60px;
          height: 60px;
        }
      }

      .chat_chat_body {
        min-height: 60px;
        padding-left: 10px;
        position: relative;
        padding-top: 22px;

        .chat_chat_span {
          text-align: right;
          display: block;
          position: absolute;
          top: 0;
          right: 5px;
          width: 260px;
          height: 22px;
          overflow: hidden;
        }

        .chat_chat_text {
          max-width: 260px;
          min-height: 35px;
          padding: 2px 8px;
          background: #ddd;
          font-size: 20px;
          border-radius: 10px;
        }
      }
    }
  }

  .chat_bottom {
    width: 100%;
    height: 60px;
    padding: 0 20px;
    display: flex;
    padding-top: 10px;
    position: absolute;
    bottom: 0;
    background: linear-gradient(to right, rgb(192, 192, 170), rgb(28, 239, 255));
    z-index: 99;

    .chat_input {
      width: 250px;
      height: 40px;
      border-radius: 40px;
    }

    .chat_button {
      width: 100px;
      height: 40px;
      border-radius: 20px;
      margin-left: 10px;
    }
  }
}